package cn.wokoba.dao.mapper;


import cn.wokoba.dao.pojo.UserAwardRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

//用户中奖记录
@Mapper

public interface UserAwardRecordMapper extends BaseMapper<UserAwardRecord> {

    @Update("update user_award_record set award_state = 'completed'\n" +
            "        where user_id = #{userId} and order_id = #{orderId} and award_state = 'create'")
    int updateAwardRecordCompletedState(UserAwardRecord userAwardRecordReq);
}
